package com.hnote.hnoteapplication.ui.activity;

import com.hnote.hnoteapplication.base.DataBindingActivity;
import com.hnote.hnoteapplication.ui.utils.supermarket.PriceContext;

/**
 * =====================================================
 * 功    能： 超市计算器
 * 作    者： 加菲猫
 * 邮    箱： pfliu@3box.cc
 * 时    间： 2017/3/24 0024 18:03
 * =====================================================
 */
public class SupermarketActivity extends DataBindingActivity {

    private PriceContext pContext;

    @Override
    public int getLayoutId() {
        return 0;
    }

    @Override
    public void initView() {

//        pContext = new PriceContext(new AdvancedMemberStrategy());
//        pContext.quote(100);
//
//        pContext.setMemberStrategy(new PrimaryMemberStrategy());
//        pContext.quote(100);

        pContext = new PriceContext(1);
        pContext.quote(100);
    }
}
